package com.lsl.menglushishang.util;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBOpenHelper extends SQLiteOpenHelper{
	
	public DBOpenHelper(Context context) {
		super(context,"menglushishang.db", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE product (id integer primary key autoincrement,pop varchar(20), name varchar(200), price varchar(10),imageurl varchar(200),descurl varchar(200)  )");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		//db.execSQL("ALTER TABLE product add amount integer");
	}
	
}
